package com.java.goods.mapper;

import com.java.goods.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 商品类目 Mapper 接口
 * </p>
 *
 * @author jiangli
 * @since 2019-12-15
 */
public interface CategoryMapper extends BaseMapper<Category> {

	@Select("select id as id , parent_id as parentId ,name as name, img as img,status as status , is_parent as  isParent, created as created ,updated as updated from goods_category")
	List<Category> allItemCat();
}
